{{left_sidebar_enabled,right_sidebar_enabled=False,True}}
{{extend 'layout.html'}}
<h1>Key Individuals</h1>
<p>This page lists some key individuals who we may want to try and enlist to help make the world better and we are working on establishing the best ways to contact them. </p>
<h2>Countries</h2>
<p>This initially lists all G20 Countries and their leaders. </p>

<table id='Countries'>
				<thead>
					<tr>
                        <th>Country</th>
                        <th>Leader</th>
                        <th>Contact</th>                      
                    </tr>
                </thead>
<tbody>
{{for i,row in enumerate(countries):}}
<tr>
<th>{{=row.country_name}}</th>
<td>{{=row.leader}}</td>
<td><INPUT TYPE=BUTTON onClick="parent.location='{{=URL('stdmsg',args=['country',row.id])}}'" 
VALUE="Create Message"></td>
</tr>
{{pass}}
</tbody>
</table>
<h2>Largest Corporations</h2>
<p>This initially lists the largest 10 corporations in the world per Wikipedia. </p>
<table id='Corporations'>
				<thead>
					<tr>
                        <th>Company</th>
                        <th>Leader</th>
                        <th>Contact</th>                     
                    </tr>
                </thead>
<tbody>
{{for i,row in enumerate(companies):}}
<tr>
<th>{{=row.company_name}}</th>
<td>{{=row.leader}}</td>
<td><INPUT TYPE=BUTTON onClick="parent.location='{{=URL('stdmsg',args=['company',row.id])}}'" 
VALUE="Create Message"></td>
</tr>
{{pass}}
</tbody>
</table> 
<h2>Wealthy People</h2>
<p>This initially lists the ten wealthiest people in the world per Wikipedia. </p>
<table id='People'>
				<thead>
					<tr>
                        <th>Leader</th>
                        <th>Contact</th>                        
                    </tr>
                </thead>
<tbody>
{{for i,row in enumerate(people):}}
<tr>
<th>{{=row.leader}}</th>
<td><INPUT TYPE=BUTTON onClick="parent.location='{{=URL('stdmsg',args=['people',row.id])}}'" 
VALUE="Create Message"></td>
<td></td>
</tr>
{{pass}}
</tbody>
</table> 

{{block right_sidebar}}
{{include 'sidebar.html'}}
{{end}}
